import { defineConfig } from 'vite';
import { resolve } from 'path';

export default defineConfig({
    build: {
        rollupOptions: {
            input: {
                main: resolve(__dirname, 'index.html'),
            },
        },
    },
    server: {
        open: true,
    },
    resolve: {
        alias: {
            'cesium': resolve(__dirname, 'node_modules/cesium'),
        },
    },
    optimizeDeps: {
        include: ['cesium'],
    },
});